<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://unpkg.com/vue@3"></script>
    <style>
        #h1 {
            color: antiquewhite;
        }
        .h1 {
            color: aqua;
        }
    </style>
</head>
<body>
    <div id="Application">
        <h1 v-bind:[prop]="name" v-if="show">标题</h1>
        <input v-model.trim="content">
    </div>
</body>
<script>
    const app = Vue.createApp({
        data(){
            return {
                show: true, // 控制是否显示标题
                prop: "class", // 指令参数
                name: "h1", // 指令值
                content: ""
            }
        }
    })
    app.mount("#Application")
</script>
</html>
